#ifndef KEYSEQUENCEDELEGATE_H
#define KEYSEQUENCEDELEGATE_H

#include <QObject>

#include <QItemDelegate>

class KeySequenceDelegate : public QItemDelegate
{
    Q_OBJECT
public:
    explicit KeySequenceDelegate(QObject *parent = nullptr);
    virtual ~KeySequenceDelegate();

     QWidget* createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const;

//    void setEditorData(QWidget *editor, const QModelIndex &index) const;
//    void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const;
//    void updateEditorGeometry(QWidget *editor,  const QStyleOptionViewItem &option, const QModelIndex &index) const;

signals:
    void currentIndexChange(int row, int col) const;  //定义消息必须有const

private slots :

private:
//    QString m_sContent;


};

#endif // KEYSEQUENCEDELEGATE_H
